package com.king.pattem.threadpool;

/**
 * @author taomk
 * @version 1.0
 * @since 15-2-5 下午10:37
 */
public class MyTask implements Runnable {

	protected String name;

	public MyTask() {

	}

	public MyTask(String name) {
		this.name = name;
	}

	@Override
	public void run() {
		try {
			// 使用sleep方法代替一个具体功能的执行
			Thread.sleep(100);
		}catch (InterruptedException e) {
			e.printStackTrace();
		}
	}
}
